<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <h:body>
        <ui:composition template="../../templates/master.xhtml">
            <ui:define name="content">
                <p:panel header="Complaint Detial">
                    <p:panelGrid columns="2">
                       
                        <h:outputText value="Title: "/>
                        <h:outputText value="#{complaintsController.selected.title}"/>
                        
                        
                        <h:outputText value="Date: "/>
                        <h:outputText value="#{complaintsController.selected.dateCreated}">
                            <f:convertDateTime pattern="dd-MMM-yyyy HH:mm:ss" dateStyle="short" />
                        </h:outputText>
                        
                        <h:outputText value="Last updated: "/>
                        <h:outputText  value="#{complaintsController.selected.lastUpdated}">
                            <f:convertDateTime pattern="dd-MMM-yyyy HH:mm:ss" dateStyle="short" />
                        </h:outputText>
                        
                        <h:outputText value="Assign to: "/>
                        <h:outputText  value="#{complaintsController.selected.assignedTo.username}"/>
                        
                        <h:outputText value="Reporter: "/>
                        <h:outputText  value="#{complaintsController.selected.reporter.username}"/>
                        
                        <h:outputText value="Reporter: "/>
                        <h:outputText  value="#{complaintsController.selected.reporter.username}"/>
                        
                        <h:outputText value="Department: "/>
                        <h:outputText value="#{complaintsController.selected.departmentID.name}"/>
                        
                        <h:outputText value="Priority: "/>
                        <h:outputText value="#{complaintsController.selected.priority}"/>
                        
                        <h:outputText value="Description: "/>
                        <h:outputText value="#{complaintsController.selected.description}"/>
                        
                    </p:panelGrid>
                </p:panel>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
